<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">
$(function() {
	changeTermsType();
});

function changeTermsType() {
	$.ajax({
        type: "post",
        url: "./termsList_result.ga",
        dataType: "html",
        data: {
            terms_type: $("input[name=terms_type]:checked").val()
        },
        success: function( data ) {
        	$("#result").html( data );
        },
        error: function() {
        	alert("오류");
        }
    });
}
</script>

</head>
<body>

<h2>약관 보기</h2>
<table width="100%">
    <tr>
        <td align="right">
            <input type="button" value="신규 등록하기"
                class="bigBtn"
                onclick="location.href='./regTermsForm.ga'"
            />
        </td>
    </tr>
</table>

항목: 
<input type="radio" name="terms_type" value="0" onchange="changeTermsType()" checked/> 개인보호정책 &nbsp;
<input type="radio" name="terms_type" value="1" onchange="changeTermsType()"/> 서비스 이용 약관
<br/><br/>
<div id="result"></div>

</body>
</html>